<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Plain Text Switcher</title>
    <script type="text/javascript" src="../../build/yahoo/yahoo.js"></script>
    <script type="text/javascript" src="../../build/dom/dom.js"></script>
    <script type="text/javascript" src="../../build/event/event.js"></script>
    <style>
        textarea {
            width: 95%;
            height: 15em;
            margin: 2em;
        }
    </style>
</head>
<body class="yui-skin-sam">

<textarea id="before"></textarea>
<textarea id="after"></textarea>
<textarea id="after2"></textarea>

<script>
(function() {
var html = '<!DOCTYPE HTML PUBLIC "-/'+'/W3C/'+'/DTD HTML 4.01/'+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd"><html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><style>{CSS}</style><style>{HIDDEN_CSS}</style></head><body>{CONTENT}</body></html>';

var css = 'body { padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } span.yui-tag-a { color: blue; text-decoration: underline; } span.yui-tag-blockquote { margin: 1em; display: block; } span.yui-tag-indent { margin-left: 1em; display: block; } .warning-localfile { border-bottom: 1px dashed red !important; }';

var hidden_css = '.hidden div,.hidden p,.hidden span,.hidden img { border: 1px dotted #ccc; } .hidden .yui-non { border: none; } .hidden img { padding: 2px; }';

var css2 = 'body  padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;  span.yui-tag-a  color: blue; text-decoration: underline;  span.yui-tag-blockquote  margin: 1em; display: block;  span.yui-tag-indent  margin-left: 1em; display: block;  .warning-localfile  border-bottom: 1px dashed red !important; ';

var hidden_css2 = '.hidden div,.hidden p,.hidden span,.hidden img  border: 1px dotted #ccc;  .hidden .yui-non  border: none;  .hidden img  padding: 2px; ';

var content = 'This is a test<br>This is a test<br>This is a test<br>This is a test<br>This is a test<br>This is a test<br>This is a test<br>This is a test<br>This is a test<br>';

var title = 'Rich Text Editor';
    
    YAHOO.util.Event.on(window, 'load', function() {
        YAHOO.util.Dom.get('before').value = html;
        YAHOO.util.Dom.get('after').value = YAHOO.lang.substitute(html, { CONTENT: content, TITLE: title, CSS: css, HIDDEN_CSS: hidden_css });
        YAHOO.util.Dom.get('after2').value = YAHOO.lang.substitute(html, { CONTENT: content, TITLE: title, CSS: css2, HIDDEN_CSS: hidden_css2 });
    });
})();
</script>
</body>
</html>
<!-- lifeagree.corp.yahoo.com compressed/chunked Mon Jul 16 11:35:29 PDT 2007 -->
